package cn.edu.zzuli.web.bean.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.edu.zzuli.web.bean.Forum;

public class IndexRowMapper implements RowMapper<Forum> {

		public Forum mapRow(ResultSet rs, int num) throws SQLException {
			Forum ret = new Forum();
			ret.setId(rs.getInt("id"));
			ret.setTitle(rs.getString("title"));
			ret.setContent(rs.getString("content"));
			
			return ret;
		}

	}
